/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.paris5.master2.guitarmaster.bean;

import java.util.Date;

/**
 *
 * @author mourad
 */
public class EcomBid implements EcomBean {
    private Integer idBid;
    private Date dateCrea;
    private Float bidPrice;
    private EcomUser user;
    private EcomProduct product;

    public Float getBidPrice() {
        return bidPrice;
    }

    public Date getDateCrea() {
        return dateCrea;
    }

    public Integer getIdBid() {
        return idBid;
    }

    public EcomProduct getProduct() {
        return product;
    }

    public EcomUser getUser() {
        return user;
    }

    public void setBidPrice(Float bidPrice) {
        this.bidPrice = bidPrice;
    }

    public void setDateCrea(Date dateCrea) {
        this.dateCrea = dateCrea;
    }

    public void setIdBid(Integer idBid) {
        this.idBid = idBid;
    }

    public void setProduct(EcomProduct product) {
        this.product = product;
    }

    public void setUser(EcomUser user) {
        this.user = user;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final EcomBid other = (EcomBid) obj;
        if (this.idBid != other.idBid && (this.idBid == null || !this.idBid.equals(other.idBid))) {
            return false;
        }
        if (this.dateCrea != other.dateCrea && (this.dateCrea == null || !this.dateCrea.equals(other.dateCrea))) {
            return false;
        }
        if (this.bidPrice != other.bidPrice && (this.bidPrice == null || !this.bidPrice.equals(other.bidPrice))) {
            return false;
        }
        if (this.user != other.user && (this.user == null || !this.user.equals(other.user))) {
            return false;
        }
        if (this.product != other.product && (this.product == null || !this.product.equals(other.product))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "EcomBid{" + "idBid=" + idBid + ", dateCrea=" + dateCrea + ", bidPrice=" + bidPrice + ", user=" + user + ", product=" + product + '}';
    }
}
